package com.tgy.algorithm.base._图_01;

public class Edge<V> {
    V value;
    Node<V> from;
    Node<V> to;
    public Edge(V value, Node from, Node to) {
        this.value = value;
        this.from = from;
        this.to = to;
    }

    @Override
    public String toString() {
        return "value:" + this.value.toString() + " from:" + this.from.value + " to:" + this.to.value;
    }
}
